package com.clover.video.ffmpeg;

/**
 * cms 打印
 * @Author masl - 2019/8/21 0021 下午 13:36
 */
public class PrintStream extends Thread {
    java.io.InputStream _istream = null;

    public PrintStream(java.io.InputStream is) {
        _istream = is;
    }

    public void run() {
        try {
            while (this != null) {
                int _ch = _istream.read();
                if (_ch == -1) {
                    break;
                } else {
                    System.out.print((char) _ch);
                }

            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
